create or replace function selectDepartmentType(
	out refcursor, inout xml
	)
as
$$
	declare
		ref alias for $1;
		conditionData alias for $2;
	begin
		open ref for
			select departmentType2XML(depe.idDepartmentType, depe.nameDepartmentType) from DepartmentType depe;
		return;
	end;
$$ language plpgsql stable;